
if(PrefSettings == true)
{
   if(Symbol() == "USDJPY")
      {
      SMAPeriod      = 2;
      SMA2Bars       = 18;
      Percent        = 0.0032;
      TakeProfit     = 42;
      StopLoss       = 84;
      TrailingStop   = 0;
      OSMAFast       = 5;
      OSMASlow       = 22;
      OSMASignal     = 2;
      EnvelopePeriod = 2;
      Fast_Period    = 25;
      Slow_Period    = 15;
      DVBuySell      = 0.0029;
      DVStayOut      = 0.024;

      }
}

if(PrefSettings == true)
{
   if(Symbol() == "EURJPY")
      {
      SMAPeriod      = 18;
      SMA2Bars       = 10;
      Percent        = 0.018;
      TakeProfit     = 42;
      StopLoss       = 84;
      TrailingStop   = 0;
      OSMAFast       = 5;
      OSMASlow       = 30;
      OSMASignal     = 5;
      EnvelopePeriod = 6;
      Fast_Period    = 30;
      Slow_Period    = 16;
      DVBuySell      = 0.0052;
      DVStayOut      = 0.027;
     
      }
}

if(PrefSettings == true)
{
   if(Symbol() == "GBPJPY")
      {
      SMAPeriod      = 8;
      SMA2Bars       = 12;
      Percent        = 0.0072;
      TakeProfit     = 42;
      StopLoss       = 84;
      TrailingStop   = 0;
      OSMAFast       = 5;
      OSMASlow       = 36;
      OSMASignal     = 10;
      EnvelopePeriod = 2;
      Fast_Period    = 17;
      Slow_Period    = 28;
      DVBuySell      = 0.0034;
      DVStayOut      = 0.063;
     
      }
}

if(PrefSettings == true)
{
   if(Symbol() == "CHFJPY")
      {
      SMAPeriod      = 30;
      SMA2Bars       = 4;
      Percent        = 0.012;
      TakeProfit     = 42;
      StopLoss       = 84;
      TrailingStop   = 0;
      OSMAFast       = 7;
      OSMASlow       = 45;
      OSMASignal     = 8;
      EnvelopePeriod = 20;
      Fast_Period    = 52;
      Slow_Period    = 29;
      DVBuySell      = 0.0016;
      DVStayOut      = 0.034;
     
      }
}
if(PrefSettings == true)
{
   if(Symbol() == "EURUSD")
      {
      SMAPeriod      = 11;
      SMA2Bars       = 50;
      Percent        = 0.001;
      TakeProfit     = 42;
      StopLoss       = 84;
      TrailingStop   = 0;
      OSMAFast       = 8;
      OSMASlow       = 40;
      OSMASignal     = 10;
      EnvelopePeriod = 20;
      Fast_Period    = 4;
      Slow_Period    = 15;
      DVBuySell      = 0.0003;
      DVStayOut      = 0.006;
     
      }
}

if(PrefSettings == true)
{
   if(Symbol() == "GBPUSD")
      {
      SMAPeriod      = 17;
      SMA2Bars       = 6;
      Percent        = 0.0012;
      TakeProfit     = 44;
      StopLoss       = 46;
      TrailingStop   = 0;
      OSMAFast       = 27;
      OSMASlow       = 22;
      OSMASignal     = 8;
      EnvelopePeriod = 4;
      Fast_Period    = 22;
      Slow_Period    = 46;
      DVBuySell      = 0.00035;
      DVStayOut      = 0.045;
     
      }
}

if(PrefSettings == true)
{
   if(Symbol() == "USDCHF")
      {
      SMAPeriod      = 4;
      SMA2Bars       = 10;
      Percent        = 0.0045;
      TakeProfit     = 42;
      StopLoss       = 84;
      TrailingStop   = 0;
      OSMAFast       = 4;
      OSMASlow       = 14;
      OSMASignal     = 6;
      EnvelopePeriod = 4;
      Fast_Period    = 23;
      Slow_Period    = 50;
      DVBuySell      = 0.0005;
      DVStayOut      = 0.001;
     
      }
}

if(PrefSettings == true)
{
   if(Symbol() == "GBPCHF")
      {
      SMAPeriod      = 10;
      SMA2Bars       = 20;
      Percent        = 0.034;
      TakeProfit     = 42;
      StopLoss       = 84;
      TrailingStop   = 0;
      OSMAFast       = 9;
      OSMASlow       = 30;
      OSMASignal     = 4;
      EnvelopePeriod = 7;
      Fast_Period    = 25;
      Slow_Period    = 50;
      DVBuySell      = 0.001;
      DVStayOut      = 0.03;
     
      }
}

if(PrefSettings == true)
{
   if(Symbol() == "AUDUSD")
      {
      SMAPeriod      = 12;
      SMA2Bars       = 2;
      Percent        = 0.008;
      TakeProfit     = 24;
      StopLoss       = 46;
      TrailingStop   = 0;
      OSMAFast       = 10;
      OSMASlow       = 40;
      OSMASignal     = 2;
      EnvelopePeriod = 4;
      Fast_Period    = 30;
      Slow_Period    = 5;
      DVBuySell      = 0.0004;
      DVStayOut      = 0.0005;
     
      }
}

if(PrefSettings == true)
{
   if(Symbol() == "EURCHF")
      {
      SMAPeriod      = 19;
      SMA2Bars       = 3;
      Percent        = 0.008;
      TakeProfit     = 42;
      StopLoss       = 84;
      TrailingStop   = 0;
      OSMAFast       = 3;
      OSMASlow       = 30;
      OSMASignal     = 3;
      EnvelopePeriod = 4;
      Fast_Period    = 35;
      Slow_Period    = 80;
      DVBuySell      = 0.0004;
      DVStayOut      = 0.0005;
     
      }
}

if(PrefSettings == true)
{
   if(Symbol() == "EURAUD")
      {
      SMAPeriod      = 2;
      SMA2Bars       = 6;
      Percent        = 0.004;
      TakeProfit     = 42;
      StopLoss       = 84;
      TrailingStop   = 0;
      OSMAFast       = 4;
      OSMASlow       = 45;
      OSMASignal     = 10;
      EnvelopePeriod = 4;
      Fast_Period    = 20;
      Slow_Period    = 36;
      DVBuySell      = 0.0005;
      DVStayOut      = 0.0009;
      }
}


if(PrefSettings == true)
{
   if(Symbol() == "USDCAD")
      {
      SMAPeriod      = 2;
      SMA2Bars       = 2;
      Percent        = 0.0036;
      TakeProfit     = 60;
      StopLoss       = 65;
      TrailingStop   = 0;
      OSMAFast       = 3;
      OSMASlow       = 10;
      OSMASignal     = 3;
      EnvelopePeriod = 4;
      Fast_Period    = 5;
      Slow_Period    = 10;
      DVBuySell      = 0.0005;
      DVStayOut      = 0.001;
     
      }
}

//=====